package com.yang.springboot02.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//员工表
@Data//set/get
//@AllArgsConstructor//有参
@NoArgsConstructor//无参
public class Employee {
    private Integer id;//员工id
    private String lastName;//员工姓名
    private String email;//员工邮箱
    private Integer gender;//性别 0:女  1：男
    private Department department;
    private Date birth;

    public Employee(Integer id, String lastName, String email, Integer gender, Department department) {
        this.id = id;
        this.lastName = lastName;
        this.email = email;
        this.gender = gender;
        this.department = department;
        //默认的创建日期！
        this.birth = new Date();
    }
}
